package StateManagementIRPConstDefs;
/**
 * Generated from IDL enum "UsageState".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class UsageState
	implements org.omg.CORBA.portable.IDLEntity
{
	private int value = -1;
	public static final int _Idle = 0;
	public static final UsageState Idle = new UsageState(_Idle);
	public static final int _Active = 1;
	public static final UsageState Active = new UsageState(_Active);
	public static final int _Busy = 2;
	public static final UsageState Busy = new UsageState(_Busy);
	public int value()
	{
		return value;
	}
	public static UsageState from_int(int value)
	{
		switch (value) {
			case _Idle: return Idle;
			case _Active: return Active;
			case _Busy: return Busy;
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	public String toString()
	{
		switch (value) {
			case _Idle: return "Idle";
			case _Active: return "Active";
			case _Busy: return "Busy";
			default: throw new org.omg.CORBA.BAD_PARAM();
		}
	}
	protected UsageState(int i)
	{
		value = i;
	}
	java.lang.Object readResolve()
	throws java.io.ObjectStreamException
	{
		return from_int(value());
	}
}
